#include <iostream>
#include <vector>
#include "LeetcodeSolutions.h"

using namespace std;


int main() {

//    std::cout << "Hello, World!" << std::endl;
    vector<int> data = {2, 7, 11, 15};
    LeetcodeSolutions solution;
//    vector<int> result = solution.twoSum(data , 9);
/*
    vector<int> result = solution.twoSumTwo(data,9);
    for (int counter : result) {
        cout<< counter <<endl;
    }
*/

    ListNode* l1 = new ListNode(2);
    l1->next = new ListNode(4);
    l1->next->next = new ListNode(3);

    ListNode* l2 = new ListNode(5);
    l2->next = new ListNode(6);
    l2->next->next = new ListNode(4);

    ListNode* l3 = solution.addTwoNumbers(l1,l2);
    if(l3 == nullptr){
        cout<<"wrong result"<<endl;
    }
    while(l3!= nullptr){
        cout<<(*l3).val<<endl;
        l3 = l3->next;
    }
    return 0;
}